GDK-Win32: Use SetProcessDpiAwarenessContext() where available
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 4 Dec 2019 10:41:05 +0000 (18:41 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 31 Jul 2020 15:20:25 +0000 (23:20 +0800)
commit20388f83f58e9d9b7e798c07be3b731a7891201b
treed8e95384ea2db76da39688edbfcbc95624c5e64f
parentc97979873a9e72e97f36d0c53ea96a98c3a389f7
GDK-Win32: Use SetProcessDpiAwarenessContext() where available

This allows us to use DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 for the
DPI awareness mode, which will help us to better support use cases with
multiple monitors.  This is actualy a more advaned version of the
current PROCESS_PER_MONITOR_DPI_AWARE via using SetProcessDpiAwareness().

Note that this is not enabled by default, but also enabled via using
GDK_WIN32_PER_MONITOR_HIDPI, as in the PROCESS_PER_MONITOR_DPI_AWARE
case.

Note also, that appliation compatibility settings and DPI-awareness
manifests takes precedence over this API call, as before.
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkdisplay-win32.h